<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp-head.jsp" %>
<!DOCTYPE>
<html>
<head>
<title>统计脚本生成器</title>
<%@ include file="/commons/html-head-easyui.jsp" %>
<script type="text/javascript">

	function scriptGenerate()
	{
		var html=$("#statistics-script-generate-form-template").html();
		$("#statistics-script-generate-form").append(html);
		
	}

	$(function(){
		scriptGenerate();
	})
</script>
</head>
<body>
	<form id="statistics-script-generate-form" action="/yuanlai/statistics-script-generate.action">
		<div>
		<input type="submit"  value="submit"/><input type="button" onclick="scriptGenerate()" value="add"/>
		</div>
		<div>
		table:<input type="text" name="table">
		</div>
	</form>
	
	<div id="statistics-script-generate-form-template" style="display:none">
	
		<div>
			字段：<input type="text" name="fields"/>
			字段类型：
			<select name="types">
				<option value="int">int</option>	
				<option value="tinyint">tinyint</option>
				<option value="varchar">varchar</option>		
			</select>
			是否是key：
			<select name="keys">
				<option value="true">是</option>	
				<option value="false">否</option>	
			</select>
			<br>
			<textarea rows="" cols="" name="sqls" style="width:420px;height:75px"></textarea>
		</div>
		<br>
	</div>
	
	
</body>
</html>